import request from '@/utils/request'

/**
 * 登录验证
 * @param {mobile,password} data 
 * 
 */
export function login(data) {
  return request({
    url:'/sys/login',
    method:'post',
    data
  })
}
/**
 * 获取用户基本资料
 * @returns 
 */
export function getProfile() {
  return request({
    url:'/sys/profile',
    method:'post',

  })
}
/**
 * @description: 获取用某个用户的信息
 * @param {*} id
 * @return {*}
 */
export function getUserDetailById(id) {
  return request({
    url:`/sys/user/${id}`
  })
}